package com.sc.pb_user.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 训练计划表
 * </p>
 *
 * @author PBObserver
 * @since 2025-09-19 05:02:16
 */
@Getter
@Setter
@TableName("pb_training_plan")
public class PbTrainingPlan {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 逻辑外键，关联pb_user.id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 计划名称
     */
    @TableField("plan_name")
    private String planName;

    /**
     * 目标描述
     */
    @TableField("target")
    private String target;

    /**
     * 周期描述
     */
    @TableField("cycle")
    private String cycle;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
}
